<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Users.aspx.cs" Inherits="MOM.DB.Users" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>    
	<title>Users</title>
	<style type="text/css">
		@import url(../Css/Mom.css);
		@import url(../Css/themes/green.css);
		th, td
		{
			padding: 5px;
		}
		#gvUser td
		{
			border-bottom: solid 1px #FFFFFF ! important;
		}
		a
		{
			font-weight: bold;
			text-decoration: underline;
		}
	</style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width:760px;margin:0 auto;margin-top:20px;">
    <div class="DropShadow">
		<div class="Box">
			<div class="P10">
				<asp:GridView ID="gvUser" Width="100%" CellSpacing="0" CellPadding="0" BorderStyle="none" BorderWidth="0" GridLines="none" DataKeyNames="Id" AutoGenerateColumns="false" OnRowEditing="User_Edit" OnRowCancelingEdit="User_Cancel" OnRowUpdating="User_Update" OnRowDeleting="User_Delete" runat="server">
					<Columns>
						<asp:BoundField DataField="Username" HeaderText="Username" />
						<asp:BoundField DataField="Password" HeaderText="Password" />
						<asp:CheckBoxField DataField="IsAdmin" HeaderText="Admin" />
						<asp:CommandField DeleteText="Delete" EditText="Edit" UpdateText="Update" CancelText="Cancel" ShowEditButton="true" ShowDeleteButton="true" />
					</Columns>
				</asp:GridView>
				
				<br /><br />
				
				<table border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td>
							Username:<br /><asp:TextBox ID="txtUsername" runat="server"></asp:TextBox>
						</td>
						<td>
							Password:<br /><asp:TextBox TextMode="password" ID="txtPassword" runat="server"></asp:TextBox>
						</td>
						<td valign="top">Admin<br /><asp:CheckBox ID="cbAdmin" runat="server" /></td>
					</tr>
					<tr>					
						<td colspan="3">
							<asp:Button Text="Add user" OnClick="AddUser_Click" runat="server" />
						</td>
					</tr>
				</table>
			</div>
		</div>
    </div>
    </div>
    </form>
</body>
</html>
